package lab02.Test35;

public class Test {
        public static void main(String[] args) {
            Manager m = new Manager("张三", 2000);
            Salesman s = new Salesman("李四", 3000, 60, 50);
            Worker w = new Worker("王五", 29, 70);
            System.out.println("经理" + m.getName() + "的工资为" + m.computeSalary());
            System.out.println("销售人员" + s.getName() + "的工资为" + m.computeSalary());
            System.out.println("工人" + w.getName() + "的工资为" + m.computeSalary());
        }

    }

